package opn.srn.command.load.parser;

import java.util.ArrayList;
import java.util.List;

public class GroupMetaData extends FieldMetaData {
	IParser parser;
	List<FieldMetaData> fieldMetaDatas;
	boolean globalParseScope;
	Object additionalMetaInfo;

	public GroupMetaData(String name) {
		this(name, new ArrayList<FieldMetaData>(), true);
	}

	public GroupMetaData(String name, List<FieldMetaData> fieldMetaDatas, boolean globalParseScope) {
		super(name);
		this.fieldMetaDatas = fieldMetaDatas;
		this.globalParseScope = globalParseScope;
	}

	public IParser getParser() {
		return parser;
	}

	public void setParser(IParser parser) {
		this.parser = parser;
	}

	public List<FieldMetaData> getFieldMetaDatas() {
		return fieldMetaDatas;
	}

	public void setFieldMetaDatas(List<FieldMetaData> fieldMetaDatas) {
		this.fieldMetaDatas = fieldMetaDatas;
	}

	public boolean isGlobalParseScope() {
		return globalParseScope;
	}

	public void setGlobalParseScope(boolean globalParseScope) {
		this.globalParseScope = globalParseScope;
	}

	public Object getAdditionalMetaInfo() {
		return additionalMetaInfo;
	}

	public void setAdditionalMetaInfo(Object additionalMetaInfo) {
		this.additionalMetaInfo = additionalMetaInfo;
	}
}
